import http from '@http/http'
export const _selectMajorNameAndCollegeNameByStudentID = StudentID => http.GET('/api/student/selectMajorNameAndCollegeNameByStudentID' + '?StudentID' + StudentID)

export const _unCheckRoom = Student => http.POST('/api/student/unCheckRoom', Student)
export const _handleInDorm = StudentID => http.POST('/api/student/handleInDorm' + '?StudentID=' + StudentID)

export const _selectBuildingsByAreaID = AreaID => http.GET('/api/student/selectBuildingsByAreaID' + '?AreaID=' + AreaID)

export const _selectRoomsByBuildingID = BuildingID => http.GET('/api/student/selectRoomsByBuildingID' + '?BuildingID=' + BuildingID)

export const _addAdjustRecord = (StudentID, InRoomID, OutRoomID) => http.GET('/api/student/addAdjustRecord' + '?StudentID=' + StudentID + '&' + 'InRoomID=' + InRoomID + '&' + 'OutRoomID=' + OutRoomID)

export const _getRating = RoomID => http.GET('/api/student/getRating' + '?RoomID=' + RoomID)

export const _subRepair = (StudentID, reason) => http.POST('/api/student/subRepair' + '?StudentID=' + StudentID + '&' + 'reason=' + reason)

export const _getIndiscipline = DOT => http.POST('/api/student/getIndisciplineTable', DOT)

export const _getRepairTable = DOT => http.POST('/api/student/getRepairTable', DOT)
